home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
090
/
pctj8505.arc
/
PWRITST.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1986-09-14
|
512b
|
22 lines
PROGRAM PWRITST;
{This is a driver program for testing the function PWRI which
calculates X (real) to the power N (integer). The method of
calculation is explained in the article and in the header of
function PWRI.}
VAR Z,X: REAL;
N: INTEGER;
{$I PWRI.PAS}
BEGIN
WRITELN('Input X,N');
READLN(X,N);
Z := PWRI(X,N);
WRITELN;
WRITELN(Z);
END.